package com.bestcem.xm.user.service;

import java.util.HashMap;

/**
 * 自增长seq服务
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/11 17:55
 */
public interface SequenceService {

    /**
     * 根据key值自增序列号
     *
     * @param key
     * @return int
     * @author wangyunyun <yunyun.wang@idiaoyan.com>
     * @version v1.0
     * @date 2022/3/11 15:17
     */
    int incrementVersion(String key);

    /**
     * 批量更新seq
     *
     * @param seqMap
     * @return void
     * @author panyun <yun.pan@idiaoyan.com>
     * @date 2022/7/21 14:47
     */
    void batchUpdateSeqByCode(HashMap<String, Integer> seqMap);

}
